<include file="../Public/inleft" />
<div id="main"> <include file="../Public/main_nav" />
  <div id="main_content" style="text-align:left;"> 
        	<div id="banner"><img src="../Public/Psd/mbook.gif" border="0" /></div>
   <br />
    <br />
    
    <volist name="booklist" id="vo" >
    <table width="85%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#6FD3F7">
    <tr>
          <td width="150" height="20" align="right" bgcolor="#D2EFFF" style="padding:5px;">留言时间：</td>
          <td align="left" bgcolor="#D2EFFF" style="padding:5px;">{$vo.cTime|toDate}</td>
        </tr>
        <tr>
          <td height="20" align="right"bgcolor="#D2EFFF" style="padding:5px;"> 留言人名：</td>
          <td align="left" bgcolor="#D2EFFF" style="padding:5px;">{$vo.author}</td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style="padding:5px;"> 留言内容：</td>
          <td align="left" bgcolor="#FFFFFF" style="padding:5px;"> {$vo.content}<br /></td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style="padding:5px;"> 留言回复：</td>
          <td align="left" bgcolor="#FFFFFF" style="padding:5px;color:#FF6600" >{$vo.reply}</td>
        </tr>
    </table>
    <br />
    </volist>
        
    <table width="80%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#6FD3F7" style="margin-top:10px;margin-left:15px;">
      <tr>
        <td align="left" valign="middle" bgcolor="#FFFFFF" style="padding:5px;padding-left:15px;" class="fnone">{$page}      </td>
      </tr>
    </table>
    <br />
    <table  width="85%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#6FD3F7" >
    <form action="__APP__/index/booking" method="post" name="books" onsubmit="return $.formValidator.pageIsValid('1')">
    <input type="hidden" value="{.nid}" name="nid" />
        <tr>
          <td width="100" height="27" align="right" bgcolor="#D2EFFF" style="padding:5px;padding-right:15px;">姓名:</td>
          <td align="left" valign="middle" bgcolor="#FFFFFF" style="padding:5px;padding-left:15px;"><input name="author" type="text" id="author" size="20" maxlength="10" /></td>
        </tr>
        <tr>
          <td align="right" valign="top"bgcolor="#D2EFFF" style="padding:5px;padding-right:15px;">邮件：</td>
          <td align="left" valign="middle" bgcolor="#FFFFFF" style="padding:5px;padding-left:15px;"><input name="email" type="text" id="email" size="30"/></td>
        </tr>
        <tr>
          <td height="82" align="right" valign="top"bgcolor="#D2EFFF" style="padding:5px;padding-right:15px;">留言:</td>
          <td align="left" valign="middle" bgcolor="#FFFFFF" style="padding:5px;padding-left:15px;"><textarea name="content" cols="40" rows="5" id="content"></textarea></td>
        </tr>
        <tr>
          <td width="100" height="27" align="right" bgcolor="#D2EFFF" style="padding:5px;padding-right:15px;">验证码:</td>
          <td align="left" valign="middle" bgcolor="#FFFFFF" style="padding:5px;padding-left:15px;"><input name="verify" type="text" size="10" />
            <img src="__APP__/public/verify" alt="验证码"  id="verifycode"/></td>
        </tr>
        <tr>
          <td height="42" align="center" valign="middle" bgcolor="#FFFFFF">&nbsp;</td>
          <td height="42" align="center" valign="middle" bgcolor="#FFFFFF"><input type="submit" name="button" id="button" value="提交" /></td>
        </tr>
      </form>
    </table>
    
    

  </div>
</div>
</div>
<include file="../Public/right" />

 <include file="../Public/footer" /> 
 
 <script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("#title").formValidator({onshow:"请输入标题",onfocus:"标题长度最少为2个字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:4,max:50,onerror:"你输入的标题长度不正确,请确认"});
	$("#author").formValidator({onshow:"请输入你的名称",onfocus:"名称长度最少为2个字符",oncorrect:"恭喜你,你输对了"}).inputValidator({min:2,max:50,onerror:"你输入的名称长度不正确,请确认"});
	$("#email").formValidator({onshow:"请输入邮箱",onfocus:"邮箱6-50个字符,输入正确了才能离开焦点",oncorrect:"恭喜你,你输对了"}).inputValidator({min:6,max:50,onerror:"你输入的邮箱长度非法,请确认"});
	$("#content").formValidator({onshow:"请输入内容",onfocus:"内容6-100个字符,输入正确了才能离开焦点",oncorrect:"恭喜你,你输对了"}).inputValidator({min:6,max:100,onerror:"你输入的内容长度非法,请确认"});
//	$("#cTime").focus(function(){WdatePicker({skin:'whyGreen',oncleared:function(){$(this).blur();},onpicked:function(){ $(this).blur();}})}).formValidator({onshow:"请输入发布时间",onfocus:"你输入的发布时间，不能全部是0哦",oncorrect:"你输入的发布时间合法"}).inputValidator({min:"1900-01-01",type:"date",onerror:"日期必须在\"1900-01-01\"和\"2000-01-01\"之间"});//.defaultPassed();
//	$("#categoryID").formValidator({onshow:"请输入categoryID",onfocus:"categoryID至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的categoryID长度不正确,请确认"});
//	$("#downNum").formValidator({onshow:"请输入downNum",onfocus:"downNum至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的downNum长度不正确,请确认"});
//	$("#cTime").formValidator({onshow:"请输入cTime",onfocus:"cTime至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的cTime长度不正确,请确认"});
//	$("#os").formValidator({onshow:"请输入os",onfocus:"os至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的os长度不正确,请确认"});
//	$("#homePage").formValidator({onshow:"请输入homePage",onfocus:"homePage至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的homePage长度不正确,请确认"});
//	$("#size").formValidator({onshow:"请输入size",onfocus:"size至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的size长度不正确,请确认"});
//	$("#content1").formValidator({onshow:"请输入content",onfocus:"content至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的content长度不正确,请确认"});
});
</script>
